<?php

namespace App\Modules\CodeDesigner\Builder;

class Product
{
    public $parts = [];

    public function create(string $part)
    {
        array_push($this->parts, $part);
    }

    public function getResult()
    {
        foreach ($this->parts as $part) {
            echo '部件：' . $part . PHP_EOL;
        }
    }
}